package com.community.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

@SuppressWarnings("serial")
public class Parking {
    @TableId(value = "id", type = IdType.INPUT) //这种方式是主键手动输入
    private Integer id; //id
    private String stall; //车位
    private Integer area; //面积
    private Integer carState;  //1:闲置2:使用
    private Integer personnelState;    //1:未出售2:已出售

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getStall() {
        return stall;
    }

    public void setStall(String stall) {
        this.stall = stall;
    }

    public Integer getArea() {
        return area;
    }

    public void setArea(Integer area) {
        this.area = area;
    }

    public Integer getCarState() {
        return carState;
    }

    public void setCarState(Integer carState) {
        this.carState = carState;
    }

    public Integer getPersonnelState() {
        return personnelState;
    }

    public void setPersonnelState(Integer personnelState) {
        this.personnelState = personnelState;
    }

    @Override
    public String toString() {
        return "Parking{" +
                "id=" + id +
                ", stall='" + stall + '\'' +
                ", carState=" + carState +
                ", personnelState=" + personnelState +
                '}';
    }
}
